/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Random;
import java.util.TreeSet;

/**
 * <p>Project: jse2303 - TreeSet3
 * <p>Powered by webrx On 2023-07-19 17:45:19
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class TreeSet3 {
    public static void main(String[] args) {
        //red ball 1-32
        Random rand = new Random();
        TreeSet<Integer> red = new TreeSet<>();
        while (red.size() < 6) {
            System.out.println("i");
            int t = rand.nextInt(1, 33);
            if (!red.contains(t)) red.add(t);
        }
        System.out.println(red);
    }
}
